﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Top4Cruise.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.Top4Cruise.Top4Cruise" %>
<div id="home-csruises">


    <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSourceCruise"  RepeatColumns="4"
        RepeatDirection="Horizontal" Width="100%" HorizontalAlign="Center">
        <ItemStyle VerticalAlign="Top" />
        <ItemTemplate>
            <div style="width: 24%; padding-left: 1%;">
                <table style="width: 100%; text-align: center; " border="0" >
                    <tr>
                        <td>
                        <div class="photo-error" 
                                style="width:158px;height:100px;border-width: 1px; border-color: #b9b9b9; border-style: solid;">
                                                 <a id="hinhAnh" href='<%# Eval("ID", "~/CruisesDetail.aspx?ID={0}&TL=").ToString() + Eval("TheLoaiID")  %>'
                                runat="server" title='<%# Eval("TieuDe") %>' style="text-decoration: none;">
                                <img id="Img1" runat="server" src='<%# Eval("HinhAnh", "~/Images/HinhAnh/{0}") %>'
                                    width="158" height="100" style="border-width:0px;" /></a>   
                        </div>

                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("ID", "~/CruisesDetail.aspx?ID={0}&TL=").ToString() + Eval("TheLoaiID")  %>'
                                Text='<%# Eval("TieuDe") %>'></asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("GhiChu") %>'></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <br />
        </ItemTemplate>
        <SeparatorStyle VerticalAlign="Top" />
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSourceCruise" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT TOP 4 * FROM [tblTour]"></asp:SqlDataSource>
</div>
